<#-- 话题搜索页 -->
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html>
<head>
	<base href="${baseURL}" />
	<meta http-equiv="Content-Type" content="text/html; charset=utf-8"/>
	<title>${title}</title>
	<meta name="keywords" content="${keywords}"/>
	<meta name="description" content="${description}"/>
	<link href="${commonPath}css/common.css" rel="stylesheet" type="text/css" />
	<link href="${commonPath}css/themify-icons/style.css" type="text/css" rel="stylesheet">
	<!--[if (IE 6)|(IE 7)|(IE 8)]>
	<script type="text/javascript" src="${commonPath}js/css3pie/PIE_IE678.js"></script> 
	<![endif]--> 
	<script language="javascript" src="${commonPath}js/tool.js" type="text/javascript"></script>
	<script language="javascript" src="${commonPath}js/ajax.js" type="text/javascript"></script>
	<script language="javascript" src="${commonPath}js/json2.js" type="text/javascript"></script>
	<script type="text/javascript" src="${commonPath}js/jquery/jquery.min.js" language="javascript"></script>
	<script type="text/javascript" src="${commonPath}js/jquery/jquery.letterAvatar.js" language="javascript"></script>
</head>
<body>
<#-- 引入页头 -->
<@include action="${newPublic_2}"/>
<div class="skeleton ">
	<div class="main wrap" >
		<div class="topicModule">
			<div class="topic-box">
				<div class="topicList">
					<#if searchResultPage?exists && searchResultPage.records?exists && searchResultPage.records?size gt 0>
						<#list searchResultPage.records as searchResult>
							<#if searchResult.indexModule == 10>
								<#assign topic = searchResult.topic>	
								<div class="topicItem">
									<div class="avatarBox">
							            <a class="avatarLink" href="user/control/home?userName=${topic.userName}">
							            	<#if topic.avatarName != null>
												<img src="${topic.avatarPath}100x100/${topic.avatarName}">
											<#else>
												<!--[if (IE)]><img src="${commonPath}images/min_avata.png"><![endif]-->
												<!--[if !(IE)]><!--><img avatar="${(topic.nickname != null && topic.nickname??) ?string(topic.nickname , topic.account)}" ><!--<![endif]-->
											</#if>                                                         
							            </a>   
							        </div>
									
									<div class="content clearfix">
										<ul class="info">
								        	<li>
								        		<span class="module">话题</span>
								            	<span class="tag">${topic.tagName}</span>
								            	<a class="userName" href="user/control/home?userName=${topic.userName}">
								            		${(topic.nickname != null && topic.nickname??) ?string(topic.nickname , topic.account)}
								            	</a>
								            	<#list topic.userRoleNameList as roleName>
													<span class="userRoleName">${roleName}</span>
												</#list>
								            	<#if topic.isStaff>
													<span class="staff">官方人员</span>
												</#if>
								            	<span class="postTime">发表时间：${topic.postTime}</span>
								            	<#if topic.lastReplyTime != null>
								            		<span class="lastReplyTime">最新回复：${topic.lastReplyTime}</span>
								            	</#if>
								        	</li>
								        </ul>
										<h2 class="title highlight clearfix">
											<a href="thread?topicId=${topic.id}"><#noescape>${topic.title}</#noescape></a>
								            <#list topic.allowRoleViewList as roleName>
												<span class="topicRoleName">${roleName}</span>
											</#list>
											<#if topic.essence == true>
								            	<span class="essence">精华</span>
								            </#if>
								             <#if topic.sort gt 0>
								            	<span class="top">置顶</span>
								            </#if>
										</h2>
										<div class="clearfix"></div>
										<div class="detail">
											<h2 class="summary highlight">
												<#noescape>${topic.content}</#noescape>
											</h2>
						                </div>
									</div>
									
									<div class="statistic clearfix">
					                	
					                	<div class="viewTotal">
					                		<i class="cms-view icon"></i>
					                		${topic.viewTotal}
					                	</div>
					                	
					                	<div class="commentTotal">
					                		<i class="cms-commentCount icon"></i>
					                		${topic.commentTotal}
					                	</div>
									</div>
								</div>
								
							<#elseif searchResult.indexModule == 20>
								<#assign question = searchResult.question>
								
								<div class="topicItem" >
									<div class="avatarBox">
							            <a class="avatarLink" href="user/control/home?userName=${question.userName}">
							            	<#if question.avatarName != null>
												<img src="${question.avatarPath}100x100/${question.avatarName}">
											<#else>
												<!--[if (IE)]><img src="${commonPath}images/min_avata.png"><![endif]-->
												<!--[if !(IE)]><!--><img avatar="${(question.nickname != null && question.nickname??) ?string(question.nickname , question.account)}" ><!--<![endif]-->
											</#if>                                                           
							            </a>   
							        </div>
									
									<div class="content clearfix">
										<ul class="info">
								        	<li>
								        		<span class="module">问题</span>
								            	<a class="userName" href="user/control/home?userName=${question.userName}">
								            		${(question.nickname != null && question.nickname??) ?string(question.nickname , question.account)}
								            	</a>
								            	<#list question.userRoleNameList as roleName>
													<span class="userRoleName">${roleName}</span>
												</#list>
								            	<#if question.isStaff>
													<span class="staff">官方人员</span>
												</#if>
								            	<span class="postTime">发表时间：${question.postTime}</span>
								            	<#if question.lastAnswerTime != null>
								            		<span class="lastReplyTime">最新回复：${question.lastAnswerTime}</span>
								            	</#if>
								        	</li>
								        </ul>
										<h2 class="title highlight clearfix">
											<a href="question?questionId=${question.id}">
								            	<#noescape>${question.title}</#noescape>
								            </a>
										</h2>
										<div class="clearfix"></div>
										<div class="detail">
											<h2 class="summary highlight">
												<#noescape>${question.content}</#noescape>
											</h2>
						                </div>
									</div>
									
									<div class="statistic clearfix">
					                	
					                	<div class="viewTotal">
					                		<i class="cms-view icon"></i>
					                		${question.viewTotal}
					                	</div>
					                	
					                	<div class="commentTotal">
					                		<i class="cms-commentCount icon"></i>
					                		${question.answerTotal}
					                	</div>
									</div>
								</div>
						
						
							</#if>  
						</#list>
					</#if>     
					
					<div class="topicPage">
						<#assign pageView = searchResultPage>
						<#--引入分页-->
						<@include action="${newPublic_1}"/>
					</div>
				</div>
			</div>
		</div>
		
	
	</div>
</div>
<#-- 引入页脚 -->
<@include action="${newPublic_3}"/>

</body>
</html>




